@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="导出" id="ensure" icon="fa-check" clickFun="InvitationCodeInfoDlg.doExport(${department.id!})"/>
                </div>
            </div>
            <table class="table">
                <thead>
                <tr>
                    <th>${department.fullname!}（部门）邀请码</th>
                    <th>是否可用</th>
                </tr>
                </thead>
                <tbody>
                @for(invitationCode in invitationCodes){
                <tr>
                    <td>${invitationCode.code}</td>
                    <td>
                        @if(invitationCode.available){
                        可用
                        @}else{
                        不可用
                        @}
                    </td>
                </tr>
                @}
                </tbody>
            </table>

        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/flagGlory/invitationCode/invitationCode_info.js"></script>
@}
